<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>recipe_update</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    处方名称: <input type="text" name="cname" value="{{ recipe.cname }}">
    <br>
    诊断结果: <input type="text" name="result" value="{{ recipe.result }}">
    <br>
    患者: <input type="text" name="hname" value="{{ recipe.hname }}">
    <br>
    问诊医生: <select name="doctor" id="doctor">
    {% for i in doctor %}
        <option value="{{ i.id }}">{{ i.uname }}</option>
    {% endfor %}
</select>
    <br>
    <input type="submit" value="提交">
</form>



</body>
</html>